Reentrant vs NonReEntrant locks
Java 5 has a ReentrantLock implementation of the Lock interface. Meaning if the same thread tries to acquire the lock again, it will allow that. It does have information about which thread is holding the lock. The following code will not cause a deadlock. 1 2 3 4 5 6 7 8 9 10 11 … Continue reading Reentrant vs NonReEntrant locks
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed